<?php
	$expo = sqlite_open($_GET["expo"]);
	$result = sqlite_query($expo, "UPDATE expo SET 'exhibit'='".$_POST["rename"]."' WHERE (type='desc')");
	sqlite_close($expo);
	if ($result != false){
		oyster_log("SUCCESS", (string)$language->stati->value_2, "MonaLisa rename");
		$head->_template_assign("STATUS", (string)$language->stati->value_2);
	} else {
		oyster_log("ERROR", (string)$language->errors->value_10, "MonaLisa rename");
		$head->_template_assign("ERROR", (string)$language->errors->value_10);
	}
	
	$_GET["mode"] = "";
	include("Applications/monalisa/monalisa.php");
?>